<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets" template="/protected/template/template.xhtml">
	<ui:define name="content">
		<p:panel header="Log Source Management">
			<p:messages />
			<p:panelGrid>
				<p:row>
					<p:column>
						<h:outputText value="ID" />
					</p:column>
					<p:column>
						<h:outputText value="#{logSourceManagementBean.logSource.id}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:outputLabel value="Name" for="name" />
					</p:column>
					<p:column>
						<p:inputText id="name" value="#{logSourceManagementBean.logSource.name}" required="true" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:outputLabel value="Description" for="description" />
					</p:column>
					<p:column>
						<p:inputTextarea id="description" value="#{logSourceManagementBean.logSource.description}" />
					</p:column>
				</p:row>
				<p:row rendered="#{logSourceManagementBean.clientRendered}">
					<p:column>
						<p:outputLabel value="Client" for="client" />
					</p:column>
					<p:column>
						<p:selectOneMenu id="client" value="#{logSourceManagementBean.logSource.client}" converter="genericEntityConverter" required="true">
							<f:selectItem itemValue="" itemLabel="" />
							<f:selectItems value="#{logSourceManagementBean.clients}" var="client" itemValue="#{client}" itemLabel="#{client.name}" />
						</p:selectOneMenu>
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="Syslog Configuration" />
					</p:column>
					<p:column>
						<h:outputText value="#{logSourceManagementBean.logSourceConfiguration}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:commandButton value="Save" action="#{logSourceManagementBean.save}" ajax="false" />
					</p:column>
				</p:row>
			</p:panelGrid>
		</p:panel>
	</ui:define>
</ui:composition>
